package br.com.massai.model.dao;

import java.util.List;

import javax.inject.Inject;

import br.com.massai.model.entity.ItemOrcamento;
import br.com.massai.model.jdbc.FirebirdJDBC;
import br.com.massai.model.repository.ItemOrcamentoRepository;

public class ItemOrcamentoDAO extends GenericDAO<ItemOrcamento> implements ItemOrcamentoRepository {

	private static final long serialVersionUID = 977625825887756103L;
	
	@Inject private FirebirdJDBC firebirdJDBC;

	public ItemOrcamentoDAO() {
		super(ItemOrcamento.class);
	}

	@Override
	public List<ItemOrcamento> obterPorCodigoObra(Long centroCusto, String desc) throws Exception {
		return firebirdJDBC.obterItemOrcamentoPorObra(centroCusto, desc);
	}
}